angular.module('ProduceReady').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider.
            //工单
            state('index.MO', {
                url: '/MO/Edit',
                templateUrl: 'modules/ProduceReady/client/views/MO.client.view.html',
                controller: 'MOController',
                access: { requiredAuthentication: true }
            }).
            state('index.MOById', {
                url: '/MO/Edit/:id',
                templateUrl: 'modules/ProduceReady/client/views/MO.client.view.html',
                controller: 'MOController',
                access: { requiredAuthentication: true }
            }).
            state('index.MOList', {
                url: '/MO/List',
                templateUrl: 'modules/ProduceReady/client/views/MOList.client.view.html',
                controller: 'MOListController',
                access: { requiredAuthentication: true }
            });
    }
]);
